package logging;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

import org.slf4j.ILoggerFactory;
import org.slf4j.Logger;

import AdapterSlf4j.StaticLoggerBinder;

public class Main {

	public static void main(String[] args) {
		
		ILoggerFactory loggerFactory = StaticLoggerBinder.getSingleton().getLoggerFactory();
		Logger logger1 = loggerFactory.getLogger("logger1");
		Logger logger2 = loggerFactory.getLogger("logger2");
		Logger logger3 = loggerFactory.getLogger("logger3");
		
		logger1.info("Hello World");
		logger1.info("Hola Mundo");
		logger1.info("Hallo Welt");

		logger2.info("tp no deberia loguearse");
		logger2.debug("tp deberia logguearse");
		
		logger3.trace("no deberia loguearse..");
		logger3.warn("esto deberia loggearse con excepcion", new NullPointerException());
		
		/*DECIA LOGGER3.FAIL PERO ESTO NO ESTA EN LA INTERFAZ DEL SLF4J, ASI QUE
		 * TEMPORALMENTE LE PUSE ERRROR/
		 */
		logger3.error("esto deberia loggearse tambien...");

	}

}
